#include <stdio.h>

int main(){

    int a[] = {0,1,2,3};
    int *p = a;

    printf("%d\n",a[2-1]);
    printf("%d\n",p[2-1]);
    printf("%d\n",*(p+2-1));
    printf("%d\n",*(a+2-1));

    return 0;
}